//
//  WaitorderCell.m
//  Commerce
//
//  Created by xiaofeifei on 15/3/6.
//  Copyright (c) 2015年 fei. All rights reserved.
//

#import "WaitorderCell.h"

@implementation WaitorderCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configUIWithData:(NSDictionary *)dic{
    _dataDic = dic;
    _userNameLabel.text = [dic[@"UserName"] isEqual:[NSNull null]]?@"":dic[@"UserName"];
    _dateLabel.text = [dic[@"ScheduleTime"] isEqual:[NSNull null]]?@"":dic[@"ScheduleTime"];
    _orderNameLabel.text = [dic[@"OrderName"] isEqual:[NSNull null]]?@"":dic[@"OrderName"];
    _goodsNameLabel.text = [dic[@"GoodsName"] isEqual:[NSNull null]]?@"":dic[@"GoodsName"];
    _specNameLabel.text = [dic[@"TrueName"] isEqual:[NSNull null]]?@"":dic[@"TrueName"];
    _typeNameLabel.text =[NSString stringWithFormat:@"%@ %@",[dic[@"CarTypeName"] isEqual:[NSNull null]]?@"":dic[@"CarTypeName"],[dic[@"CarSpecName"] isEqual:[NSNull null]]?@"":dic[@"CarSpecName"]];
}

@end
